home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / pdc / include / sys / time.h < prev    next >
C/C++ Source or Header  |  1990-04-05  |  2KB  |  46 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this 
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /* time.h - standard C time functions and definitions */
  18.  
  19. #define CLK_TCK 50  
  20. typedef long time_t;
  21. typedef long clock_t;
  22.  
  23. struct tm {
  24.     int tm_sec;   /* seconds; range 0..59 */
  25.     int tm_min;   /* minutes; range 0..59 */
  26.     int tm_hour;  /* hours since midnight; range 0..23 */
  27.     int tm_mday;  /* day of month; range 1..31 */
  28.     int tm_mon;   /* month; range 0..11 */
  29.     int tm_year;  /* year; with 0==1900 */
  30.     int tm_wday;  /* day of week; range Sun=0..6 */
  31.     int tm_yday;  /* day of year; range 0..365 */
  32.     int tm_isdst; /* nonzero implies daylight savings */
  33.     };
  34.  
  35. extern clock_t    clock();
  36. extern time_t     time();
  37. extern char      *asctime();
  38. extern char      *ctime();
  39. extern struct tm *gmtime();
  40. extern struct tm *localtime();
  41. extern time_t     mktime();
  42. extern double     difftime();
  43.  
  44. extern double     jday();
  45. extern int        dayofw();
  46.